<head>
<title>AgBay - Login</title>
</head>

<body>

{% block content_title %}
  <h2>Login to AgBay</h2>
{% endblock %}

{% if error_msg %}
<font color="red">{{ error_msg }}</font><br /><br />
{% endif %}

{% block content %}
<form name = "login_form" action= "attempt_login" method="post">
{% csrf_token %}

    {{ form.non_field_errors }}
    <div class="fieldWrapper">
        {{ form.usename.errors }}
        <label for="id_username">Username:&nbsp;&nbsp;</label><input type='text' size="15" name = "nameParam">
        {{ form.usename }}
    </div>
	
    <div class="fieldWrapper">
        {{ form.email.errors }}
        <label for="id_password">Password:&nbsp;&nbsp;</label><input type='password' size="15" name = "passwordParam">
        {{ form.email }}
    </div>
	
    <p> <input type="submit" value="Submit"/></p>

</form>
{% endblock %}

</body>
